<%@ page import="java.text.SimpleDateFormat" %>
<%@ page import="java.sql.Date" %>
<%@page contentType="text/html;charset=UTF-8" language = "java"%>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>date页面</title>
</head>
<body>
<%
    String name=request.getParameter("uesrname");
    out.println("你好"+name+"!今天的日期是：");
    Date date=new Date();
    SimpleDateFormat sdf=new SimpleDateFormat("yyyy年MM月dd日");
    String string=sdf.format(date);
    out.println(string);
%>
</body>
</html>